"use strict";
const shell = require("electron").shell;
let ahref = document.querySelector("a");
ahref.addEventListener("click", async (e) => {
  e.preventDefault();
  let href = ahref.getAttribute("href");
  console.log(href);
  shell.openExternal(href);
});
let button = document.querySelector("button");
button.addEventListener("click", async () => {
  window.open("https://jspang.com");
});